package org.ucas.faker.web.service.Visualization.entity;

import com.alibaba.fastjson.JSONArray;

public class AxisParam {
    private JSONArray label = null;
    private String name = "";
    private String unit = "";

    public JSONArray getLabel() {
        return label;
    }

    public void setLabel(JSONArray label) {
        this.label = label;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public boolean hasUnit(){
        if (this.unit == null){
            return false;
        } else if (this.unit.length()==0){
            return false;
        } else{
            return true;
        }
    }
}
